package com.wsh.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsh.entity.sys.DepartmentEntity;
import com.wsh.vo.sys.DepartmentTree;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 王思涵
* @date 2020-03-14
*/
@Mapper
public interface DepartmentDao extends BaseMapper<DepartmentEntity> {
    // 分页
    List<DepartmentEntity> getDeparmentTable(@Param("parentId") String parentId);

    // 树结构部门
    List<DepartmentTree> departTree(String parentId);
}
